/*
.box { position:fixed;z-index:9995;right:5px;bottom:5px;width:350px;height:380px;border:1px solid #ddd;
    background-color: #fff;border-radius:5px;}
*/
.im-div-wrap {
    position: fixed;z-index: 9999; right:10px;bottom:10px;width:490px;height:380px;border:1px solid #ddd;background-color: #fff;
    border-radius:5px;box-shadow:0px 0px 5px rgba(0,0,0,.19);}
.im-contact {float:left;width:139px; height:380px;border-right: 1px solid #ddd;border-radius: 5px 0 0 5px;}
.im-contact-hd {
    height: 40px;
    /*border-right: 1px solid #e5e5e5;*/
    border-bottom: 1px solid #ddd;
    background-color: #eee;
    border-radius: 5px 0 0 0;
}
.im-contact-hd h3 {
    font: 300 14px/40px 'microsoft yahei', serif;
    color: #333;
    padding-left: 20px;
}

.im-contact-list {

}
.im-contact-list .item {
    /*width: 139px;*/
    width: auto;
    height: 50px;
    background-color: #fff;
}

.im-contact-list .item.here,
.im-contact-list .item:hover {
    background-color: #eff9f5;
}


.im-contact-bd {
    position: relative;
    width: 139px;
    height: 339px;
    overflow: hidden;
    overflow-y: auto;
}
.im-contact-list .item {position:relative;}
.im-contact-list .item .photo {
    width: 30px;
    height: 30px;
    float: left;
    /*margin: 10px;*/
    margin: 10px 5px 10px 10px;
}
.im-contact-list .item .photo img { display: block; }
.im-contact-list .item .name {padding-top:18px;padding-bottom:5px;color:#666;white-space: pre;}
.im-contact-list .item .date {color:#999;}
.im-contact-list .item .num {position:absolute;right:3px;top:18px;width:14px;height:14px;background: transparent url(http://res.ckimg.com/sites/www/v2/images/public/webim-bg.png) -170px -83px;font:700 12px/14px 'Arial', '\5FAE\8F6F\96C5\9ED1', 'Microsoft YaHei', 'Tahoma', 'Hiragino sans gb', 'SimSun', 'Sans-serif';color:#fff;text-align: center;}






.im-div{float:left;width:350px;height:380px;/*border:1px solid #ddd;*/
    background-color: #fff;border-radius:5px;}
/*.im-div{box-shadow:0px 0px 5px rgba(0,0,0,.19);}*/



/*
    webtalk 20150429
*/
.im-mask{width:100%;height:100%;position:fixed;top:0;left:0;z-index:9994;background-color:#000;opacity:.8;filter:alpha(opacity=80);}
.im-div{/*position:fixed;z-index:9995;right:5px;bottom:5px;width:350px;height:380px;border:1px solid #ddd;
    background-color: #fff;border-radius:5px;*/}
.im-div{box-shadow: 0 0 5px rgba(0,0,0,.19);}
.im-hd{height:40px;background-color: #eee;border-radius:5px 5px 0 0;white-space: nowrap;}
.im-bd{clear: both; /*width:333px;*/height:223px;overflow:hidden;overflow-y:auto;padding:10px;border-top:1px solid #e5e5e5;border-bottom:1px solid #ddd;}
.im-ft{height:95px;}
.im-div .im-ok,
.im-div .im-error,
.im-div .im-more,
.im-div .im-rp,
.im-div .im-fail{
    display:inline-block;
    *zoom:1;
    width:12px;
    height:12px;
    overflow:hidden;
    background: url('http://res.ckimg.com/sites/www/v2/images/public/webim-bg.png') no-repeat 0 0;
    vertical-align: middle;
}
.im-div .im-ok{
    background-position: -85px -39px;
}
.im-div .im-error{
    background-position: -119px -39px;
}
.im-div .im-more{
    width:14px;
    height:14px;
    background-position: -143px -83px;
}
.im-div .im-rp{
    cursor: pointer;
    width:18px;
    height:18px;
    background-position: -81px -62px;
}
.im-div .im-fail{
    width:18px;
    height:18px;
    background-position: -113px -62px;
}
.im-hd-user{float:left;}
.im-hd-user .photo{
    width: 30px;
    height: 30px;
    margin:5px 10px;
    float:left;
    position: relative;
}
.im-hd-user .photo i{
    display:block;
    width:12px;
    height:12px;
    position:absolute;
    bottom:-2px;
    right:-2px;
    background: url('http://res.ckimg.com/sites/www/v2/images/public/webim-bg.png') no-repeat 0 0;
}
.im-hd-user .photo i.online{
    background-position: -85px -15px;
}
.im-hd-user .photo i.offline{
    background-position: -119px -15px;
}
.im-hd-user .name{
    font: normal 14px/40px "microsoft yahei";
    color:#333;
}
.im-hd-status{float:right;margin:1px;}
.im-hd-status a{float:left;display:block;width:35px;height:38px;overflow:hidden;background:url('http://res.ckimg.com/sites/www/v2/images/public/webim-bg.png') no-repeat 0 0;}
.im-hd-status a.s{
    background-position: 0 -59px;
}
.im-hd-status a.b{
    background-position: -35px -59px;
}
.im-hd-status a.s:hover{
    background-position: 0 -97px;
}
.im-hd-status a.b:hover{
    background-position: -35px -97px;
}
.im-bd-tit{
    text-align:center;
    line-height: 20px;
    margin-bottom:10px;
    color:#555;
}
.im-bd-tit a{color:#3377aa;}
.im-bd-tit a:hover{
    color:#3377aa;
    text-decoration: underline;
}
.im-bd-pictxt{
    border:1px solid #f4f4f4;
    background-color: #f7f7f7;
    padding:5px 10px;
    margin-bottom:10px;
    color:#555;
    font: normal 12px/18px 'simsun';
    white-space: nowrap;
}
.im-bd-pictxt img{
    margin-right:10px;
    float:left
}
.im-bd-pictxt a{
    display: block;
    color:#555;
    text-decoration: none;
}
.im-bd-pictxt:hover{
    background-color: #f2f6f9;
}

.im-bd-guess{
    border:1px solid #f4f4f4;
    background-color: #f7f7f7;
    padding:5px 10px;
    margin-bottom:10px;
    color:#555;
    font: normal 12px/18px 'simsun';
    white-space: normal;
}
.im-bd-guess p {margin-bottom: 5px;}
.im-bd-guess ul { padding-left: 16px; }
.im-bd-guess li {
    list-style: disc outside;
    color:#0071ff;

}
.im-bd-guess a{
    /*display: block;*/
    color:#0071ff;
    line-height: 20px;
}
.im-bd-guess a:hover{
    text-decoration: underline;
}

.im-bd-chat{}
.im-bd-chat .chatitem{
    margin-bottom:15px;
    line-height: 14px;
    font-size:12px;
    font-family: "simsun",sans-serif;
    color:#777;
}
.im-bd-chat .chatitem .name{
    color:#3388ff;
    margin-bottom:5px;;
}
.im-bd-chat .chatitem .time{margin-left:10px}
.im-bd-chat .chatitem .text{
    padding-left:12px;
    padding-right:12px;
    line-height: 20px;
    font-family: 'sans-serif';
    color:#333;
    white-space: normal;
    word-break: break-all;
}
.im-bd-chat .self .name{
    color:#38a97c;
}
.im-bd-tips{
    color:#999;
    line-height: 20px;
    padding:5px;
    margin-bottom:10px;
    background-color: #f7f7f7;
    border-radius:5px;
}
.im-ft-bar{
    height:26px;
}
.im-ft-bar a{
    float:left;
    display:block;
    width:22px;
    height:22px;
    margin:2px 5px;
    border:1px solid #fff;
    background:url('http://res.ckimg.com/sites/www/v2/images/public/webim-bg.png') no-repeat -80px -88px;
}
.im-ft-bar a:hover{
    /*border:1px solid #ddd;*/
    border-radius:3px;
}
.im-ft-bar a.face{
    background-position: -80px -87px;
}
.im-ft-bar a.face:hover{
    background-position: -80px -115px;
}
.im-ft-bar a.img{
    background-position: -112px -87px;
}
/*.im-ft-bar a.img:hover{*/
/*background-position: -112px -115px;*/
/*}*/
.im-ft-txt{
    padding:0 10px;
    margin:2px 0;
    clear:both;
    height:36px;
    color:#777;
    line-height: 18px;
    overflow:auto;
}
.im-ft-txt img{
    vertical-align: top;
}
.im-ft-txt .tips{
    color:#d3d3d3;
}
.im-ft-txt textarea{
    width:100%;
    height:auto;
    /*overflow: hidden;*/
    border:none;
    box-shadow:none;
    border-radius:0;
    padding:0;
    line-height: 18px;
    color:#777;
    resize: none;
}
.im-ft-btn{}
.im-ft-btn a.enter{
    float:right;
    display:block;
    width:60px;
    height:24px;
    margin-right:10px;
    background:url('http://res.ckimg.com/sites/www/v2/images/public/webim-bg.png') no-repeat 0 -145px;
}
.im-ft-btn a.enter:hover{
    background-position: 0 -175px;
}




.r-msg{width:200px;height:30px;border:1px solid #ccc;background-color:#fff;}
.r-msg:hover{box-shadow: 0 0 3px rgba(0,0,0,.2);cursor: pointer}
.r-msg .user{display: block; width:24px;height:24px;float:left;margin:3px 5px;}
.r-msg .txt{line-height: 30px;color:#777;}

#kkUploadCover{
    position: relative;
    width: 24px;
    height: 24px;
    margin: 2px 5px;
}
#kkUploadCover .pictureUpload{border:solid 1px red}
#kkUploadCover .pictureUpload{
    float:left;
    display:block;
    width:22px;
    height:22px;
    /*margin:2px 5px;*/
    border:1px solid #fff;
    background:url('http://res.ckimg.com/sites/www/v2/images/public/webim-bg.png') no-repeat -80px -88px;
}
#kkUploadCover .pictureUpload:hover{
    /*border:1px solid #ddd;*/
    border-radius:3px;
}

#kkUploadCover .pictureUpload{
    background-position: -112px -87px;
}
#kkUploadCover .pictureUpload:hover{
    background-position: -112px -115px;
}

#kkUploadCover .swfupload{
    left: 1px;
    top: 1px;
}

.openChatWindow{
    cursor: pointer;
}

/*联系人为空*/
.im-empty {
    text-align: center;
    border-top: 1px solid #e9e9e9;
    padding-top: 90px;
}
.im-empty img {
    display: inline-block;
    margin-bottom: 10px;
}
.im-empty p { line-height: 22px; }
